package com.fzkj.thread.demo;

public class MyThread extends Thread {

    private String thradName;

    public MyThread(String thradName) {
        this.thradName = thradName;
    }

    // 线程执行的逻辑体
    @Override
    public void run() {
        for (int i = 1; i <= 100; i++) {
            System.out.println(thradName+":下载："+i+"%");
        }
    }
}
